import { ICourse } from '@/shared/model/course.model';
import { IStudent } from '@/shared/model/student.model';
import { ITeacher } from '@/shared/model/teacher.model';

export interface IUserClass {
  id?: number;
  classId?: number | null;
  startTime?: Date | null;
  endTime?: Date | null;
  classNumber?: number | null;
  classStatus?: number | null;
  course?: ICourse | null;
  students?: IStudent[] | null;
  teachers?: ITeacher[] | null;
}

export class UserClass implements IUserClass {
  constructor(
    public id?: number,
    public classId?: number | null,
    public startTime?: Date | null,
    public endTime?: Date | null,
    public classNumber?: number | null,
    public classStatus?: number | null,
    public course?: ICourse | null,
    public students?: IStudent[] | null,
    public teachers?: ITeacher[] | null
  ) {}
}
